<template>
  <ElConfigProvider :locale="zhCn" :message="config">
    <RouterView></RouterView>
  </ElConfigProvider>
</template>

<script setup lang="js">
// Element Plus 中文设置
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import { ElConfigProvider } from 'element-plus'
import { ref } from 'vue'

const config = ref({
  // Elemessage 弹窗最多一个
  max: 1
})
</script>
